#include "SingleBufferManager.h"

/**
Create a new instance that manages size frames and operates on the file filename.
*/
SingleBufferManager::SingleBufferManager(const std::string& filename, unsigned size) : BufferManager(filename, size)
{
    for (unsigned i = 0; i < size; ++i)
    {
        this->frames[i] = new BufferFrame(0, NULL, false, true);
        this->frameQueue.push(i);
    }
}
